﻿namespace Site2AppWP8.Config
{
    using System;
    using System.Runtime.Serialization;

    [DataContract]
    public class SettingsConfig
    {
        public SettingsConfig()
        {
            this.IsEnabled = false;
        }

        [DataMember(Name = "enabled")]
        public bool IsEnabled { get; set; }

        [DataMember(Name = "title")]
        public string Title { get; set; }

        [DataMember(Name = "header")]
        public string Header { get; set; }

        [DataMember(Name = "HTMLText1")]
        public string HTMLText1 { get; set; }

        [DataMember(Name = "HTMLText2")]
        public string HTMLText2 { get; set; }

        [DataMember(Name = "HTMLText3")]
        public string HTMLText3 { get; set; }

        [DataMember(Name = "feedbackEmail")]
        public string FeedbackEmail { get; set; }

        [DataMember(Name = "feedbackSubject")]
        public string FeedbackSubject { get; set; }

        [DataMember(Name = "feedbackUrl")]
        public string FeedbackUrl { get; set; }

        public Uri PrivacyUrl 
        { 
            get 
            { 
                return new Uri(this.PrivacyUrlString);
            } 
        }

        [DataMember(Name = "privacyUrl")]
        public string PrivacyUrlString { get; set; }

        public Uri SettingsUrl 
        { 
            get 
            { 
                return new Uri(this.SettingsUrlString);
            } 
        }

        [DataMember(Name = "settingsUrl")]
        public string SettingsUrlString { get; set; }
    }
}
